<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 */

get_header(); ?>

                

    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span3">
          <div class="well sidebar-nav">
               <?php get_search_form(); ?>
              кількість: <span class="simpleCart_quantity"></span><br>
              сума: <span class="simpleCart_total"></span><br>
              <a href="javascript:;" class="simpleCart_checkout">Оформити замовлення</a><br>
              <a href="javascript:;" class="simpleCart_empty">Очистити корзину</a>
              
              
            <ul class="nav nav-list">
              <li class="nav-header">Sidebar</li>
              <li class="active"><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li class="nav-header">Sidebar</li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li class="nav-header">Sidebar</li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
            </ul>
          </div><!--/.well -->
        </div><!--/span-->
        <div class="span9">
          <div class="hero-unit">
            <h1>Hello, world!</h1>
            <p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
            <p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>
          </div>
             <div class="row-fluid">
            <ul class="thumbnails">
                <?php if ( have_posts() ) : ?>
                <?php while ( have_posts() ) : the_post(); ?>
                
              <li class="simpleCart_shelfItem span3">
                <div class="thumbnail">
                  <img class="item_thumb" alt="260x180" data-src="holder.js/260x180" style="width: 260px; height: 180px;" src="">
                  <div class="caption">
                    <h3><a class="item_name"href="<?php the_permalink();?>"><?php the_title()?> </a></h3>
                    <p><?php the_excerpt(); ?> </p>
                    <?php $post_meta = get_metadata('post', $post->ID, 'prace', true);?>
               <span class="item_price"><?php echo $post_meta." грн.";?> </span>
              <input type="text" value="1" class="item_quantity input-mini">
                 <input type="button" class="item_add btn " value="Додати в кошик" />
                  </div>
                </div>
              </li>
              
              <?php endwhile; ?>
            <?php else : ?>
               
                <?php endif; ?>
            </ul>
                 </div>
          
         
          </div><!--/row-->
        </div><!--/span-->
      </div><!--/row-->

      <hr>

      <footer>
        <?php get_sidebar(); ?>
        <?php get_footer(); ?>
     